package pers.cz.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Properties;

/**
 * 这里加载application.properties中自定义配置文件
 * @program: PostGirl-panent
 * @description: MyBatisProperties
 * @author: Cheng Zhi
 * @create: 2021-06-28 20:56
 **/
@Component
@PropertySource("classpath:application.properties")
@ConfigurationProperties(prefix = "mybatisplugin.slowsql")
public class MyBatisProperties extends Properties {

    private static String time;

    public static String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
